import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
	plugins: [uni()],
    server: {
        port: 8000,
        host: '0.0.0.0',
        proxy: {
        '/serve': {
            target: 'http://localhost:8080',
			// target: 'https://api.salary.diandan.xyz',
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/server/, '')
        }
    }
  }
});
